# 架构与交叉编译器
export ARCH = arm64
export CROSS_COMPILE = aarch64-none-linux-gnu-

# 目标文件
obj-m += helloworld.o

# 内核源码路径与编译输出路径
KDIR := /jnheCode/tspkfb/kernel
PWD ?= $(shell pwd)

# 执行make和clean
all:
	make -C $(KDIR) M=$(PWD)  modules
clean:
	make -C $(KDIR) M=$(PWD) clean

